#ifndef COLORFORM_H
#define COLORFORM_H

#include <QWidget>
#include <QVector3D>

namespace Ui {
class ColorForm;
}

class ColorForm : public QWidget
{
    Q_OBJECT

public:
    explicit ColorForm(QWidget *parent = nullptr);
    ~ColorForm();

    void initColor(const QVector3D& color);
    QVector3D color() const;

signals:
    void colorChanged(const QVector3D& color);

private slots:
    void componentChanged(double value);

private:
    Ui::ColorForm *ui;
};

#endif // COLORFORM_H
